const mysql = require('think-model-mysql');

/**
 * MYSQL配置。
 */
exports.model = {
    type: 'mysql',
    common: {
        logConnect: true,
        logSql: false,
        logger: msg => think.logger.info(msg)
    },
    mysql: {
        handle: mysql,
        database: 'facejoy',
        prefix: '',
        encoding: 'utf8',
        host: 'rm-uf6ndtys7ewm477c9.mysql.rds.aliyuncs.com',
        port: 3306,
        user: 'facejoy_user',
        password: 'FaceJoy!!!',
        dateStrings: true
    }
};